<ui:composition xmlns="http://www.w3.org/1999/xhtml"  
     xmlns:h="http://java.sun.com/jsf/html"  
     xmlns:f="http://java.sun.com/jsf/core"  
     xmlns:ui="http://java.sun.com/jsf/facelets"
     template="../template.xhtml">
     
	<ui:define name="content">
		<h:form>  
			<h:panelGrid columns="2">  
				<h:outputLabel for="username" value="Login" />  
				<h:inputText id="username" value="#{dashboardUserBean.usuario.login}" />  
   
				<h:outputLabel for="password" value="Senha" />  
				<h:inputSecret id="password" value="#{dashboardUserBean.usuario.senha}" />
				
				<h:outputLabel for="organizations" value="Cliente" />  
				<h:selectOneMenu id="organizations" value="#{dashboardUserBean.organizacao}" required="true" requiredMessage="Por favor escolha um cliente">
                	 <f:selectItems value="#{dashboardUserBean.organizacoes}"/>
            	</h:selectOneMenu>
   
				<h:outputLabel for="roles" value="Papel" />
				<h:selectOneMenu id="roles" value="#{dashboardUserBean.papel}" required="true" requiredMessage="Por favor escolha um papel">
                	 <f:selectItems value="#{dashboardUserBean.papeis}"/>
            	</h:selectOneMenu>
			</h:panelGrid>  
			<h:commandButton value="Save" action="#{dashboardUserBean.salvar}" />
		</h:form>  
	</ui:define>  
   
</ui:composition>